﻿namespace TvdbLib.Data
{
    /// <summary>
    ///     Represents a rating entry from thetvdb
    /// </summary>
    public class TvdbRating
    {
        #region Fields

        #endregion Fields

        #region Enumerations

        /// <summary>
        ///     Enum with all items on thetvdb that can be rated
        /// </summary>
        public enum ItemType
        {
            /// <summary>
            ///     Item is a series
            /// </summary>
            Series,

            /// <summary>
            ///     Item is an episode
            /// </summary>
            Episode
        }

        #endregion Enumerations

        #region Properties

        /// <summary>
        ///     Community Rating is a double value from 0 to 10 and is the mean value of all user ratings for this item
        /// </summary>
        public double CommunityRating { get; set; }

        /// <summary>
        ///     Which item type is this rating for
        /// </summary>
        public ItemType RatingItemType { get; set; }

        /// <summary>
        ///     The rating from this user
        /// </summary>
        public int UserRating { get; set; }

        #endregion Properties
    }
}